package polymorphic1;

/**
 * @classname:Goblin
 * @description:
 * @author: Mr.Z
 * @date: 2020/11/29 19:21
 * @version: 0.1
 * @since:1.8
 */
public class Goblin extends Monster {
    public Goblin() {
    }

    public Goblin(String name, String hp, String attack, String defense) {
        super(name, hp, attack, defense);
    }
    public void attack(){
        System.out.println(this.getName()+"使用石头进行攻击");
    }
    public void move(){
        System.out.println(this.getName()+"缓慢移动");
    }
    public void rage(){
        System.out.println("开启狂暴");
    }
}
